//
//  MartinsBaseTableViewCell.h
//  NLProjectFrameworkDemo
//
//  Created by iosdeveloper on 2020/4/26.
//  Copyright © 2020 yj_zhang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MantisCellBaseModel.h"
#import "GetChatTime.h"
#import "UIView+ViewAnyCorners.h"



NS_ASSUME_NONNULL_BEGIN
#define leftSpace adaptWidth750(20)

@interface MartinsBaseTableViewCell : UITableViewCell

@property(nonatomic,strong)UILabel*timeLabel;//时间
@property(nonatomic,strong)UIImageView*avaterView;//头像
@property(nonatomic,strong)UIView*bgView;//气泡背景
@property(nonatomic,strong)UILabel*contentLabel;//文字
@property(nonatomic,strong)UIActivityIndicatorView* indicator;//转圈小菊花
@property(nonatomic,strong)UIButton*errorBtn;//错误提示

@property(nonatomic,strong)MantisCellBaseModel*cellBaseData;//绑定数据

@property(nonatomic,assign)BOOL isShowActivity;
-(void)setUpView;

-(void)reloadCellModel:(MantisCellBaseModel*)data;
//对bgview进行切角
-(void)setThreeCorner:(CGSize)bgSize bgView:(UIView*)cornerView;

//计算label自适应宽高
-(void)relayoutLabelSize:(CGSize)labelSize;

@end

NS_ASSUME_NONNULL_END
